#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char * myStrcpy1(char * dst, const char * src)
{
    int idx = 0;
    while ( src[idx] )
    {
        dst[idx] = src[idx];
        idx++;
    }
    dst[idx] = '\0';
    return dst;
}

char * myStrcpy2(char * dst, const char * src)
{
    char * ret = dst;
    while ( *src )
    {
        *dst = *src;
        dst++;
        src++;
    }
    *dst = '\0';
    
    return ret;
}

int main()
{
    char src[] = "hello,world";
    char dst[20];
    myStrcpy2(dst, src);
    printf("here\n");
    puts(dst);


    return 0;
}